package com.lindenliu.rememberIt.events
{
	import com.lindenliu.rememberIt.data.WordItem;
	
	import flash.events.Event;
	
	public class RememberItWordResultEvent extends Event
	{
		public static const WORD_RESULT:String = "wordResult";
		private var _word:WordItem;
		private var _queryID:uint;
		
		public function RememberItWordResultEvent(type:String, result:WordItem, id:uint, bubbles:Boolean = false, cancelable:Boolean=false)
		{
			super(type, bubbles, cancelable);
			_word = result;	
			_queryID = id;
		}


		public function get word():WordItem
		{
			return _word;
		}
		public function get queryID():uint
		{
			return _queryID;
		}
		override public function clone():Event
		{
			return new RememberItWordResultEvent(type, word, queryID, bubbles, cancelable) as Event;
		}	
	}
}